London class_10- Junita Lama-JavaScript-Week-1#483
Conversation
AndriusIsin
left a comment
There was a problem hiding this comment.
Good job Junita! I like your way of writing code
|
good job Junita keep going |
thank you andrius! |
thank you ahmed |
thank you dear :) |
kjjwhitlock
left a comment
There was a problem hiding this comment.
Hi Junita, really great job! Lots of clear coding in here and you've clearly picked up the concepts well. You went the extra mile with the exercises and have really mastered string interpolation which is great to see. Watch out for typos as they can make life difficult when you're on the job :) (the amount of hours I've spent sifting through my code because of a silly typo...).
|
|
||
| function convertToUSD() {} | ||
| function convertToUSD(Pound) { | ||
| return Pound*1.4; |
There was a problem hiding this comment.
Nice! Don't forget spaces to improve readability, though :)
There was a problem hiding this comment.
Nice! Don't forget spaces to improve readability, though :)
Thank you. i have added space now.
Hi Junita, really great job! Lots of clear coding in here and you've clearly picked up the concepts well. You went the extra mile with the exercises and have really mastered string interpolation which is great to see. Watch out for typos as they can make life difficult when you're on the job :) (the amount of hours I've spent sifting through my code because of a silly typo...).
THANK YOU so much for your reviews. It is really helpful for me to realise my mistakes. I will use and remember all the suggestions you have given me here in future too .
|
|
||
| function convertToBRL() {} | ||
| function convertToBRL(Pound) { | ||
| const BRL = 0.99 * Pound * 5.7; |
There was a problem hiding this comment.
Nice, but you could think about breaking this out to improve readability. Your code should read like a story, so when you are breaking out and finding the 0.99 - how can you inform collaborators that's what you're doing? e.g. add a line with an additional variable such as priceAfterFee
There was a problem hiding this comment.
Nice, but you could think about breaking this out to improve readability. Your code should read like a story, so when you are breaking out and finding the 0.99 - how can you inform collaborators that's what you're doing? e.g. add a line with an additional variable such as priceAfterFee
Done!t Thank you
| return `Hello, my name is ${name} and I am ${age} years old`; | ||
| } |
There was a problem hiding this comment.
Great use of string interpolation here!
| function getTotal(a, b) { | ||
| total = a ++ b; | ||
| total = a + b; | ||
| return `The total is ${total}`; |
| a * b * c; | ||
| return; | ||
| return a * b * c; | ||
| } |
|
|
||
| // Why can this code be seen as bad practice? Comment your answer. | ||
| let badCode = | ||
| const badCode = format((startingValue + 10)*2); |
There was a problem hiding this comment.
Nice, but can you do this line using all of your methods rather than maths operands here?
|
|
||
| const startingValue = 2; | ||
|
|
||
| // Why can this code be seen as bad practice? Comment your answer. |
There was a problem hiding this comment.
The task has asked you to comment here why you think this is bad code :).
There was a problem hiding this comment.
I forgot to add comments. i have added now. Thank you so much for pointing it out.
| There are some Tests in this file that will help you work out if your code is working. | ||
| let addition = add(startingValue, 10); | ||
| let multification = multiply(addition, 2); | ||
| let goodCode = format(multification); |
There was a problem hiding this comment.
LOVE it. This is so tidy, clear and well labelled (watch out for the p in multification though).
| function shakeBall() { | ||
| //Write your code in here | ||
| console.log("The ball has shaken!"); | ||
| let ranomIndex = Math.floor(Math.random() * allAnswers.length); |
There was a problem hiding this comment.
watch out with your spelling here on randomindex :)
| } | ||
|
|
||
| } | ||
|
|
There was a problem hiding this comment.
Excellent! Passes all tests and very readable, well done.
kjjwhitlock
left a comment
There was a problem hiding this comment.
Hi Junita, really great job! Lots of clear coding in here and you've clearly picked up the concepts well. You went the extra mile with the exercises and have really mastered string interpolation which is great to see. Watch out for typos as they can make life difficult when you're on the job :) (the amount of hours I've spent sifting through my code because of a silly typo...).
Volunteers: Are you marking this coursework? You can find a guide on how to mark this coursework in
HOW_TO_MARK.mdin the root of this repositoryYour Details
Homework Details
Notes
What did you find easy?
What did you find hard?
What do you still not understand?
Any other notes?